<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h2>“社区生活综合服务”后台管理系统简介</h2>
        <p>
          “社区生活综合服务” 后台管理系统是专为xx 小区 “社区生活”
          小程序量身打造的核心管理中枢，承载着数据整合与接口调度的重要使命。通过该系统，运营人员能够高效管理小程序内的闲置交易、自营商品销售、家政维修等多元化生活服务板块，实时监控服务数据，精准分析用户需求。同时，系统支持小区动态讨论区的内容审核与秩序维护，确保邻里交流健康有序；还能便捷发布小区公告、活动通知等信息，助力物业与居民高效沟通。凭借系统化的数据处理与灵活的接口配置，该系统为小区居民打造了一个安全、便捷、充满活力的生活服务平台。
        </p>
        <p>
          <b>当前版本:</b> <span>v{{ version }}</span>
        </p>
        <p>
          <el-button type="primary" icon="Cloudy" plain
            @click="goTarget('https://gitee.com/suisuipingan-hyl/life-project0604')">访问码云</el-button>
        </p>
      </el-col>

      <el-col :sm="24" :lg="12" style="padding-left: 50px">
        <el-row>
          <el-col :span="12">
            <h2>技术选型</h2>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <h4>后端技术</h4>
            <ul>
              <li>SpringBoot</li>
              <li>Spring Security</li>
              <li>JWT</li>
              <li>MyBatis</li>
              <li>Druid</li>
              <li>Fastjson</li>
              <li>...</li>
            </ul>
          </el-col>
          <el-col :span="6">
            <h4>前端技术</h4>
            <ul>
              <li>Vue</li>
              <li>Vuex</li>
              <li>Element-ui</li>
              <li>Axios</li>
              <li>Sass</li>
              <li>Quill</li>
              <li>...</li>
            </ul>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
    <el-divider />
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>更新日志</span>
            </div>
          </template>
          <el-collapse accordion>
            <el-collapse-item title="v1.0.0 - 2025-06-05">
              <ol>
                <li>社区生活综合服务前后端分离管理系统正式发布</li>
              </ol>
            </el-collapse-item>
            <el-collapse-item title="v1.1.0 - 2025-06-08">
              <ol>
                <li>添加了广场模块</li>
                <li>更新了用户模块</li>
                <li>更新了系统模块</li>
              </ol>
            </el-collapse-item>
            <el-collapse-item title="v1.2.0 - 2025-06-09">
              <ol>
                <li>修改了时间范围搜索</li>
                <li>添加了交易模块</li>
                <li>完善了广场模块</li>
                <li>解决了下拉菜单的问题</li>
                <li>解决了下拉菜单的问题</li>
              </ol>
            </el-collapse-item>
            <el-collapse-item title="v1.3.0 - 2025-06-10">
              <ol>
                <li>完善了用户模块</li>
                <li>完善了系统模块</li>
                <li>完善了交易模块</li>
              </ol>
            </el-collapse-item>
            <el-collapse-item title="v1.3.5 - 2025-06-11">
              <ol>
                <li>修改了部分查询排列顺序</li>
                <li>修复了添加不存在用户的bug</li>
                <li>修改了部分表单的必填规则</li>
              </ol>
            </el-collapse-item>
          </el-collapse>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>团队信息</span>
            </div>
          </template>
          <div class="body">
            <img src="@/assets/images/message.jpg" alt="donate" style="width:100%" />
            <span style="display: inline-block; height: 30px; line-height: 30px">你可以请团队喝杯咖啡表示鼓励</span>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup name="Index">
const version = ref('1.3.5')

function goTarget(url) {
  window.open(url, '__blank')
}
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }

  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }

  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans",
  "Helvetica Neue",
  Helvetica,
  Arial,
  sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>
